/* eslint-disable no-unused-vars */
import namespace from "../../namespace";
class CanvasPolicy extends namespace.policy.Policy {
  NAME = "namespace.policy.CanvasPolicy";

  constructor() {
    super();

    this.canvas = null;
  }

  onClick(figure, mouseX, mouseY) { }

  onDoubleClick(figure, mouseX, mouseY) { }

  onMouseMove(canvas, x, y) { }

  onMouseDown(canvas, x, y) { }

  onMouseDrag(canvas, dx, dy, dx2, dy2) { }

  onMouseUp(canvas, x, y) { }

  onInstall(canvas) {
    this.canvas = canvas;
  }

  onUninstall() {
    this.canvas = null;
  }
}

namespace.policy.canvas.CanvasPolicy = CanvasPolicy;
